package com.nidu.demo.company.convertor;

import com.nidu.demo.company.dto.CompanyListQry;
import com.nidu.demo.company.dto.CompanyPageQry;
import com.nidu.demo.company.dto.CompanyQry;
import com.nidu.demo.company.model.CompanyCriteria;
import com.nidu.demo.convertor.MapStructConfig;
import org.mapstruct.Mapper;

/**
 * 公司查询条件转换器
 *
 * @author nidu
 */
@Mapper(config = MapStructConfig.class)
public interface CompanyCriteriaConvertor {

    /**
     * 单个查询条件转换
     */
    CompanyCriteria toDataObject(CompanyQry qry);

    /**
     * 列表查询条件转换
     */
    CompanyCriteria toDataObject(CompanyListQry listQry);

    /**
     * 分页查询条件转换
     */
    CompanyCriteria toDataObject(CompanyPageQry pageQry);
}
